let obj = {};
let map = new Map();
map.set(obj,"对象");

let value = map.get({});
console.log("value = ",value); // value = ?

// console.log({} == {});
map = new Map(
    [
        ["name","Hydra"],
        ["age",35],
        ["sex","男"]
    ]
);
console.log(map);
// let jsonStr = JSON.stringify(map);
// console.log(jsonStr);
// 不能直接使用JSON.stringify的话，只能先转为对象，再转为json
let obj2 = Object.fromEntries(map);
let jsonStr = JSON.stringify(obj2);
console.log(jsonStr);
